import { Component } from "vue";
import Home from "@/view/home/index.vue";
import Login from "@/view/Login.vue";
import Application from "@/view/workOrder/application.vue";
import WorkOrderApplyPage from "@/components/children/WorkOrder/WorkOrderApplyPage.vue";
import shuidianRoute from "@/router/shuidianRoute.ts";



const routes: Array<RouteOption> = [
    ...shuidianRoute,
    {
        path: "/",
        redirect: "/Login",
        component: {} as Component
    },
    //引入Home
    {
        path: "/Home",
        name: "Home",
        component: Home,
    },
    //引入Login
    {
        path: "/Login",
        name: "Login",
        component: Login,
    }, {
        path: "/Application",
        name: "Application",
        component: Application,
    }
    , {
        path: "/WorkOrderApplyPage",
        name: "WorkOrderApplyPage",
        component: WorkOrderApplyPage,
    }
]

export interface RouteOption {
    path: string;
    name?: string;
    component: Component;
    redirect?: string;
}

export default routes;
